From f6b44773934546bda7d35073673922cfc90b3b6f Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 23 Nov 2016 14:45:16 +0100 Subject: [PATCH] wayland: destroy subsurfaces along with parents Wayland subsurfaces can have other native window parents, but those need to be destroyed along with the rest of the window hierarchy otherwise an assert() is reached. https://bugzilla.gnome.org/show_bug.cgi?id=774915 --- gdk/gdkwindow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index 9ddec1bf08..f232f36d23 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -1937,6 +1937,7 @@ _gdk_window_destroy_hierarchy (GdkWindow *window, case GDK_WINDOW_CHILD: case GDK_WINDOW_TEMP: case GDK_WINDOW_FOREIGN: + case GDK_WINDOW_SUBSURFACE: if (window->window_type == GDK_WINDOW_FOREIGN && !foreign_destroy) { /* Logically, it probably makes more sense to send -- 2.30.2